import * as Cesium from "cesium";
class ViewShedPrimitive extends Cesium.PrimitiveCollection{
    //scene.primitives  添加完后的collection，会有个 isDestroyed的方法,所以让他继承下一个collection
    shadowMap:any;
    name:string
  constructor(shadowMap:any) {
      super()
      this.shadowMap=shadowMap;
      this.name="viewShedPRIMITIVE";
  }
  update(frameState:any){
      frameState['shadowMaps'].push(this.shadowMap);
  }
}
export default ViewShedPrimitive;
